package com.wolf.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wolf.common.utils.PageUtils;
import com.wolf.gulimall.ware.entity.PurchaseEntity;
import com.wolf.gulimall.ware.vo.MergeVo;
import com.wolf.gulimall.ware.vo.PurchaseDoneVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author wolfmoon
 * @email wolfmoon@gmail.com
 * @date 2022-11-15 18:10:14
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);


    /**
     * 查询未领取的采购单
     * @param params 参数
     * @return 采购单信息
     */
    PageUtils queryPageUnreceivePurchase(Map<String, Object> params);

    /**
     * 合并采购
     * @param mergeVo 整单id 合并项集合
     */
    void mergePurchase(MergeVo mergeVo);


    /**
     * 领取采购单
     *
     * @param ids 采购单ID集合
     */
    void received(List<Long> ids);

    /**
     * 完成采购
     * @param purchaseDoneVo   采购单ID 采购项集合
     */
    void done(PurchaseDoneVo purchaseDoneVo);
}

